<?php
/**
 * Created by IntelliJ IDEA.
 * User: admin
 * Date: 2020/12/10
 * Time: 15:31
 */

namespace app\common\model;
use think\Model;

class RecyclingList extends Model
{
    protected $name = 'recycling_list';
    public function  add($data){
        return $this->allowField(true)->save($data);
    }
    public function edit($data,$id){
        return $this->where('id',$id)->update($data);
    }
}